package xuanmu.office.excel.data.generator.entity;

import lombok.*;

import java.io.Serializable;

@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class Route implements Serializable {

    /**
     * 起点
     */
    private String departure;

    /**
     * 终点
     */
    private String destination;

    /**
     * 最小距离
     */
    private Integer minDistance;

    /**
     * 最大距离
     */
    private Integer maxDistance;

    @Override
    public String toString() {
        return "路线：" +
                "起点=" + departure +
                "，终点=" + destination +
                "，最短距离=" + minDistance +
                "，最长距离=" + maxDistance
                ;
    }
}
